package com.graduation.lastproject.dao.business;

import com.graduation.lastproject.entity.Bookorder;
import com.graduation.lastproject.entity.BusinessIncom;
import com.graduation.lastproject.entity.Review;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BusinessHighDao {
    //酒店数据更新
    Integer uploadFileEdit(Map<String, Object> hotelInfo);

    //根据酒店id删除表数据
    Integer deleteHotelPicInfo(String hotelId);

    Integer updataPicInfo(Map<String, Object> info);

    /*/*获取当前商家订单总数*/
    int getBOrderTotal(Bookorder bookorder);

    /*获取当前商家订单信息*/
    List<Bookorder> getBOrderInfoListPage(Bookorder bookorder);

    /*获取当前商家总数*/
    int getBReviewTotal(Review review);

    /*获取当前商家评论总数*/
    List<Review> getBReviewInfoListPage(Review review);

    /*商家回复消息*/
    Integer businessReturnReview(Map<String, Object> map);

    /*统计一年 12月份的收入*/
    List<BusinessIncom> getTotalInPrice(@Param("bphone") String bphone, @Param("year") String year);
}
